function loadPlugins(){
	var _baseUrl	= unescape(document.location.href.substring(document.location.href.lastIndexOf("/")+1,-1)).replace(/^file\:\/\/\//i,"").replace(/\//g,"\\") + "plugins";
	var fso = new ActiveXObject("Scriptin" + "g.FileSy" + "stemObject");

	if(fso.FolderExists(_baseUrl)){
		var fp = fso.GetFolder(_baseUrl);
		var ff = new Enumerator(fp.SubFolders);
		
		for (; !ff.atEnd(); ff.moveNext()){	
			var f = fso.GetFolder(ff.item());
			var	fc = new Enumerator(f.files);
			for (; !fc.atEnd(); fc.moveNext()){
				var ext = fso.GetExtensionName(fc.item());
				if(ext.toLowerCase()=="js"&&fc.item().name.indexOf("#")==-1){
					document.write("<sc" + "ript lan" + "guage='javascript' src='plugins\\" + ff.item().name + "\\"+fc.item().name + "'></scr" + "ipt>");
				}
			}
		}
	}
}

loadPlugins();